/*
 * @Description: 
 * @Date: 2021-10-22 09:39:41
 * @LastEditTime: 2022-01-21 10:36:32
 * @FilePath: /vue3-element-plus/vite.config.ts
 * @Author: Devin
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
export default defineConfig({
  plugins: [vue()],
  server: {
    port: 8080,
    open: true,
    host: '0.0.0.0'
  },
  build: {
    outDir: 'vue3'
  },
  base: './',
  resolve: {
    alias: [
      {
        find: '@',
        replacement: resolve('src')
      }
    ]
  },
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@import '@/assets/scss/variableRoot.scss';`
      }
    }
  }
})
